significantly improving model functionality, adding test scripts for inserts, run script so that tests can run in browser easily