Add relationship between subdomains and categories.