Display output of query on the same page as input