Loading tasks from MongoDB