Sounds like you are trying to do two different things:
Append data where it does not exist
Update data where it does exist and needs changed
If this is the case you need to first check to see if data exists and then depending on whether it is, either update or append.
I am working on an...