add qurey system