Retry on unique index error