Add support for PostGIS backend as per issue #1