Is there a database or standard (ISO etc.) which maps Unicode or ISO-15924 scripts with the ISO-639/Glottolog etc. languages that use them, so that I can make queries like the following on it: For an ISO-639/Glottolog etc. language, what are the ISO-15924 scripts or Unicode scripts it uses? For an ISO-15924 or Unicode script, which an ISO-639/Glottolog etc. languages use it?
It will also be nice, for a script, to be able to see a cross-comparison of character occurrences, and how their meanings differ, across languages.