mysql backup script addition, bug fixes and other