Mysql dump - logic: database.yml file read