Add database wrapper with query counter
Add query reduction test
Dont stop on failure
Add more query reduction tests