defer get_db until after test harness has run
Merge pull request #3224 from dimagi/syncdb-hotfix-2

defer get_db until after test harness has run