fixing up all the queries (making them work between service / pyr layer / query)
minor add...ZZ
minor tweaks ... get maprunning agian...