Update database.yml examples

Load app_name from rails new command.
Ref.: http://stackoverflow.com/questions/3539148/how-do-i-access-the-name-of-the-rails-3-application-object
Merge pull request #2807 from prokopsimek/patch-6

Update database.yml examples