move database connection and sql logic to models
Merge branch 'master' of https://github.com/kellyk/b3
adding reviews
extract method from url as third parameter