merged all the PostGIS commands into one script