Ensure the usage of `host` before `hostname`.

`config/database.yml` uses `host` as a key. `hostname` is left here
as the first fallback only to avoid breakage for users whom might be
still using `hostname`.