Add unique keys to the database.