Backup and restore script for mysql databases