postgis: added port support, added SensumDB class