diff --git a/xroot_plugins/XrdCtaFilesystem.cpp b/xroot_plugins/XrdCtaFilesystem.cpp
index 6f3d96d65a8fc95e3327762ca9faa34bc648ee69..be707b0145e3ea9bf8cb105ae53d0f844f15a6f4 100644
--- a/xroot_plugins/XrdCtaFilesystem.cpp
+++ b/xroot_plugins/XrdCtaFilesystem.cpp
@@ -267,9 +267,8 @@ XrdCtaFilesystem::XrdCtaFilesystem():
   m_catalogue(m_catalogueConn),
   m_scheduler(m_catalogue, m_scheddb, 5, 2*1000*1000)
 {
-  // Currently using the in-memory CTA catalogue and therefore it needs to be initialised
-  cta::catalogue::Sqlite::enableForeignKeys(m_catalogueConn);
-  cta::catalogue::Sqlite::createCatalogueDatabaseSchema(m_catalogueConn);
+  // Currently using the in-memory CTA catalogue and therefore the schema needs to be created
+  m_catalogueConn.createCatalogueDatabaseSchema();
 
   // If the backend is a VFS, make sure we don't delete it on exit.
   // If not, nevermind.