When you try to add a new entry in the database record exists, whose key to preventing duplication is the same with that of the new record.