Commit for database