We could setup some logging facility to help with debug that could capture queries that are being run? Alternatively we could have a debug mode that returns more details about queries than normal. I'm fine leaving it as is for now but I think we should remove debug stuff before releasing a version when we get there.