territory and media tables