does update do an insert when doc does not exist?