update foreign key instead of related object, bump version to 0.30

update foreign key instead of related object when all PKs are set