PHP class for backup and optimize MySQL databases