added mongo retrieval and started prediction