node application to store and update image data on MongoDB