http://robots.thoughtbot.com/improving-the-command-line-postgres-experience/