defer get_db until after test harness has run