Different approaches from the top of my mind
- If this is a onetime scenario you don't even need a database. Just store the info in the app / browser (LocalStorage). I just put the following "hammer" together and therefor every problem currently looks like a"nail" to me
- If you need a database you need to run a server and a server side language.
- You then can either write the data into the HTML page (hidden DIV's with class or ID, innerHTML and/or dataset-attributes) and then fetch it from Javascript (querySelectorAll)
- Or you can use a async call to the server and request the data from the server using a Ajax (JSON etc.). JQuery (ajax, get) has this included and for vanila JS you can use GitHub - cferdinandi/atomic: A tiny, Promise-based vanilla JS Ajax/HTTP plugin with great browser support.