committing the database