first dump to geojson, then using ogr2ogr to convert to shapefile, and last import into PostgreSQL using pgShapeLoader