create relation between topics and groups