Added the functionality to push the data to Mongo