Added saving of data in DDE2 when a patient only exists locally
Fixed record inserts when records only exist locally