Thank you for your reply,
In fact, I want to access the database to see the detailed architecture of the tables and understand the relationships between them, and to use this data to create new features.
I found this: https://fr.wikibooks.org/wiki/Matomo/Fonctionnement
But it is not very detailed and recent.