MySQL model revised