added postgres gem to gemfile and changed db type in database.yml