reworked approach for better handling of executed queries in DebugPDO

Conflicts:
	runtime/lib/connection/DebugPDOStatement.php