revert queries back