Added detection for postgres postgis