Changed dao of tasks for retrieve only task with state active/inactive.