store query info