uploading photos and saving info in MongoDB