Update/Upsert Performance Improvements

Wow, it worked out! Many thanks for this one! Those tools are going to be on my toolbelt from now :smile:

Thanks for the hint about the escaping within the json building.