Extract database config to a file and share db with child.