Allow to parse heroku-generated database.yml config file.

Better to be coherent with how config/database.yml is usually parsed, to allow for erb variables. Needed by PR #6716.