Use a DB info struct with information about which databases to dump.
Build the backup dump info from juju state.
Dump each database separately.