query reset on activation hook function

query reset on activation hook function