Re-factored some stuff in backup.sh and added a mysql backup script.