Maintain the query count if we are using a debug cursor
Merge pull request #45 from potatolondon/maintain_query_count_in_debug

Maintain the query count if we are using a debug cursor