CakePHP 1.3: sql dump in layout.
Fixed SQL debug element.

Copied CakePHP’s sql_dump.ctp and renamed the $logs view variable
in order to avoid conflict (we’re already using it as a helper var).