This nifty app will let you visualize sql queries... in the most minimal way possible.
(We assume you already have a fairly recent ruby installed)
$ gem install bundler
$ bundle install
$ ruby db/bootstrap_sqlite.rb
$ ruby db/bootstrap_postgres.rb
$ ./run_with_reload.sh
$ ./run_with_reload postgres
And open http://localhost:4567