added support for a second postgis database