added setting of foreign key in saveRelationalData() for new items in case pivot table is not used