TaskList DB Query - optimized