Done the Logic to save. Pending are the relationships update definitions

there are errors in the rel defs...