Add support for fetching all tasks, and tasks for an entity