Scheduler implementation and mongoDB integration.