Java API to backup and restore a MySQL database