avoid double-spaces in where-statement
various DBQuery-changes