Installed the flathub version 2.4.0 of XCA. Tried to create a new database but failed due to an 'open' error. Uninstalled & reinstalled the package version which worked just fine. No problem creating a new database.