commit model mysql db