various code to help with a potential QGIS gazetteer plugin that will read direct from PostGIS database