only set state to UPDATE if it's not INSERT