cleaned output from debugging messages. only resulting query now is
printed.