Added save of sql object before adding fields, if it doesn't yet exist
Added save of sql object before adding fields, if it doesn't yet exist

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq