http://www.millwoodonline.co.uk/blog/sinatra-activerecord-postgres-application