[TASK] Remove flag "debug" in QuerySettings

It turns out, the debug flag is not the most
appropriate way to debug a SQL query as such.
Better use other tools.

Change-Id: I54b3ced7d1c33e9cde18f75ed2fced651426fb24
Releases: 0.4.0
Resolves: #59081