Task cleardb, tasks improvements
Query tests.