Improve SQL debugging possibilities