Oh boy. So basically the game has its own database and you can extract the files, then convert them to csv or whatever you want.
The game tables were moved out from the database folder and into their own folder, and the files were converted to plain text.
You can browse the game files using programs like CascExplorer:
https://github.com/WoW-Tools/CASCExplorer/releases
To convert the database files, you need a program, many of these programs are still WIP as legion changed a lot of major things in how these files are structured.
You can try using this to view the contents of the database files if you manage to extract them:
https://github.com/tomrus88/dbcviewer/releases