MySQL database backup support

Not currently ready, just putting this here so comments can be made as development happens.