Added a way to save data edited on the front end to mongodb.