configuring database.yml and Gemfile