fix model db error