fix for retrieving postgres host value in prefs