Now writes to MongoDB

Commented the lines that were needed to write to the json file.