added debugging code to see the raw query