first start of the queryscript