Proper database.yml precedence

[MSP-11153](https://jira.tor.rapid7.com/secure/RapidBoard.jspa?rapidView=84&selectedIssue=MSP-11153)

Ensure that the database.yml precedence for [`config/application.rb`](config/application.rb),