fixed foreign key references in newly created tables, and added them to hibernate.cfg.xml