Hack to remove "PRAGMA…" etc, queries from profiler

Modification to remove excessive queries from profiler display. Uses
original logger string comparison to remove "not useful" queries.
Tidied up display of results in Doctrine profiler.
Merge pull request #638 from donottumbledry/master

Hack to remove "PRAGMA…" etc, queries from profiler