moved runscript and getDatafromserver from queryHandler to queryService