update MySQL model