Fix clear

Fixes reset so it clears out uncommitted queries as well as committed ones.