fixing runtime issue with database.yml.erb, it was not running each_pair on the params hash