Debug-infos if connection-query without params fails

When a query without params is executed against internal connection, and it fails, cancel execution by throwing an exception with additional informations.
Fixed: db-stmt ("$stmt" in executeQuery()) can become a non-object in case of query-error, leading to a PHP Fatal Error when fetchMode is set on it.
Trailing whitespace to be removed