fixed bug caused by RunQueryCtrl_2(this controller no longer exists)
refactored queryHandler moving the Run function to service(from
controller)