Update working as insert