```ruby

period_dir = File.expand_path('.')
$LOAD_PATH.unshift(period_dir) unless $LOAD_PATH.include?(period_dir)

begin
  require File.expand_path(".bundle/environment", __FILE__)
rescue LoadError
  require "rubygems"
  require "bundler"

  Bundler.setup(:default)
end

Bundler.require
require 'yaml'

database = YAML.load_file(File.expand_path('config/database.yml'))
database = database['database']

require 'config/environment'
Configuration.config do |config|
  config.logger_filename = "logs/rubycasts.log"
  config.load_paths = %w(. app/models app/helpers app/views app/lib app/requests)
  config.datamapper(:default, {
     :adapter  => database['adapter'],
     :host     => database['host'],
     :database => database['name']})
end
```

Put the password in the setup method
user
```ruby

period_dir = File.expand_path('.')
$LOAD_PATH.unshift(period_dir) unless $LOAD_PATH.include?(period_dir)

begin
  require File.expand_path(".bundle/environment", __FILE__)
rescue LoadError
  require "rubygems"
  require "bundler"

  Bundler.setup(:default)
end

Bundler.require
require 'yaml'

database = YAML.load_file(File.expand_path('config/database.yml'))
database = database['database']

require 'config/environment'
Configuration.config do |config|
  config.logger_filename = "logs/rubycasts.log"
  config.load_paths = %w(. app/models app/helpers app/views app/lib app/requests)
  config.datamapper(:default, {
     :adapter  => database['adapter'],
     :host     => database['host'],
     :database => database['name'],
     :password => database['password']})
end
```
assistant