Update mysql optimization template