- fix error on model validation
- add sql creation script