switch pupa to postgis