That's exactly the reason why databases of people including their religious opinions are forbidden under EU Law. And it has been that way in France and in Germany since 1978.
If a religious community does not want to participate in that scheme they can. Plenty don't use that service.