Encapsulate hard coded file path in a variable to make it cutomizable

The path "config/databases.yml" is hard coded in several places.

The goal of this PR is to remove this duplication and allow this path to be overridden.