better SQL debugging