The government registries that record who owns or keeps each car, who holds a lien on it, and whether it has been branded salvage, flood, or scrapped; every used-car sale ends with a change in their records.
DMVs and title offices are one player in the used cars industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how DMVs and title offices fit into used cars