separate db query building from tasks.py
Merge branch 'master' of https://github.com/NPrescott/TestsTracker