created a debug controller to output db queries to the screen