Running a batch job for the mongo_db.