fix model.sql