In cronRefreshUserCountryTable.py: ensured that db was not closed prematurely.