Added support for optional parmameters in query

added the ability to accept optional parameters to be passed to the arcgis endpoint