Removed unused code, refactored code, added code to insert and get json from mongo store