It would be easy to compile with fedgov’s resources.
It’s illegal. There is a federal law in place that prevents the establishment of a national database. Piglosi tried to repeal it in 2020 but it died in the Senate.