Fix issue #30 print SQL queries