Add unique index on hostnames