Update id only if it does not exist