Updates to file upload to use mongoDB