various bug fixes to queries and methods.
various bug fixes to queries and methods.

ilios/ilios,stopfstedt/ilios,Trott/ilios,thecoolestguy/ilios,justinchu17/ilios,justinchu17/ilios,stopfstedt/ilios,thecoolestguy/ilios,Trott/ilios,ilios/ilios,justinchu17/ilios,dartajax/ilios,dartajax/ilios,justinchu17/ilios