Made GET /tasks return array with tasks