extract shapes as geojson from postgis database in node.js