How the Vatican finally embraced democracy