Data Saving enabled

Model data is saved back to the database, re-coded most of JSONModel