MongoDB code changes

Updated code for report in mongoDB storage.