Update schema to avoid duplicates