Add primary keys to database.