> There weren't ex post facto laws being passed during the holocaust.
the argument isn't that states can't create ex-post facto laws (even though they can, see: any country with parliamentary sovereignty)
it's that what the law says doesn't matter when the executive no is longer bound by the rule of law
see: the United States under the Trump regime
the fact that some previous legislature has passed a law saying that "using the gay/jewish/disabled/... database for bad things is illegal" is of no consequence when the state already has the database and has no interest in upholding the rule of law