New script to extract shapefiles from postgis