Add option to dump SQL queries in stderr
Merge pull request #902 from romainneutron/dump-stderr

[3.8] Add option to dump SQL queries in stderr