Fixing database.yml and gemfile