update mysql optimization script