Adds logic for connecting to db via apps database.yml