Fix postgresql primary key issues
Merge pull request #38 from mikejihbe/fix-pg-PKs

Fix postgresql primary key issues
Fix model initialization