various postgis scripts