better error message when doing db access in non-db suite
Merge pull request #5090 from dimagi/testrunner

better error message when doing db access in non-db suite