Fix failing test about date.order translation values

Introduced in b718998f3e8e6f3d01ad138e40f08fbcc3736285.
Remove warning: shadowing outer local variable
fix anonymous class issue
Merge pull request #9002 from dahakawang/master

issue #8934 sovled
Anonymous class is not allowed. For reference see #8934 and bc43763247e25
Don't use anonymous classes in connection tests
strong parameters filters permitted scalars
Removing warning: shadowing outer local variable 
Merge pull request #9004 from arunagw/warning_removed_shadowing_outer

Removing warning: shadowing outer local variable
Created state for a transaction and added tests.
added rake db:create that executes mysql:build_databases and postgresql:build_databases
removed the puts statement and simplified the execute statement
Merge pull request #9005 from ranjaykrishna/dbcreate

added  a db create rake task.
Removed reflects_transaction_state.
added db:drop task that executes mysql:drop_databses and postgresql:drop_databases
Added a changelog entry.
Merge pull request #9006 from wangjohn/activerecord_transaction_state

Created state for a transaction and added tests.
Merge pull request #9008 from ranjaykrishna/dbcreate

Added a new rake task in activerecord