[PR 12292] Reduce duplication in database.yml with the power of YAML

Use the power of YAML in the database configurations to better express adapter concerns versus environment concerns.

https://github.com/rails/rails/pull/12292

-Benjamin