update data storage from html to mongoDB