Modify to make use of mongo collection for task list.