improvements to postgis loader