Deploying to Heroku

- Update Gemfile for Heroku
- Change to postgresql
- Some fixes for postgresql