Implement flatten_kml postgis query