Commit the db.