renamed query service to querySrv, added query pinning