script sql emprises igc postgis