Use first unique index if primary not found