Check and repair brocken mysql tables with ruby