Each library has its own database.
You have the option to choose from these types of databases.
It’s recommended to go with the Postgres or MySQL or MariaDB database. The file based database (SQLite) works great if you use it locally but has some draw backs if you want to shared it server over the network.
You have to option to later convert between the different database types. Please follow this tutorial on how to achieve that.