fixed a couple of views and made some changes to make it more heroku friendly
moving sqlite3
adding pg to gemfile