Add option to dump SQL queries in stderr