ServiceProvider model SQL fix