added batch learning using Mongo