yeah true. are you trying to insert new records to the database or you are modifying the existing one???
if your requirement is to add a new record if record doesn't exist already and if record already exists then to modify with the new values , you can use 'modify' statement.