Added primary keys to the database.