Update the task model with tasks from the server.