Fix unique indexes in intial migration to work with multi-user servers