Example of using mongo collection as a job queue.