Before doing your INSERT, run a SELECT to see if the record already exists.