use the escapeField function when doing .insert or .update

I can't see of a reason why this wasn't used before, so I added it ;-)

I couldn't get all the tests to pass on your master branch so I couldn't very that my changes didn't break anything but codewise I don't think this could or should break anything.