Scheduler based on mongo