Following this tutorial: http://web.archive.org/web/20130831213151/http://www.danneu.com/posts/15-a-simple-blog-with-sinatra-and-active-record-some-useful-tools/