Update db item only if needed