adding the various relations between sites, sources and metadata