another small refactor to conform with imos_postgresql recent changes