Once install on your fresh project, when you will run cap [env] deploy:setup the script will ask you for a database username, password and name and set all this to a database.yml file in your shared path.

Then on each deploy, this file will be linked to your last release config folder.