Update retrieval of tasks based on id