updates to insert functionality, abstraction of data calls into dataservice.js and update of request handler