Adding changes to the database.