CREATE UNIQUE INDEX IF NOT EXISTS relays_subdomain_unique
ON relays (subdomain);
