small fix
changed foreign key behaviour;
some fundamental changes will come in next commit;
Merge branch 'master' of https://github.com/dacappo/sambet