Fixed backupDatabase to store binary as hex for proper re-imports.