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.