Committing the db