Refactored the database backup script, it's nicer now :)