Fix models for MySQL