fix real inserts and add hooks
fix validation
- added types IntsType and StringsType
- expose Condition struct
- return insert errors
- add unique contraint
- fix foreign key contraint
- fix null validation