Fixing 1-1 rel. keys not being written properly

Keys were only being written based on newly written form entries, and
did not take into account previously existing form entries.  Some field
from each form still needs to be written on the pageload, for this to
work.  If the All Done button is turned off, this logic won't kick in!!!
So in that case, other measures would need to be taken to ensure things
are matched up properly in the DB.
Merge pull request #91 from jegelstaff/set-one-to-one-key-fields-properly

Fixing 1-1 rel. keys not being written properly