added database.rb and made changes so that it might work
found out why gemfile was not working - no pg gem
gemfile changes and shiet