Some changes for my implementation active-record-postgis-adapter