Commit changes to db file. Removed check function.