If you want to keep everything in the browser it's almost imposible to use a db, you will need node.js or something like that and that runs on the server, not in the browser.
An alternative to a traditional db would be taffyDB for example
It's good to be able to use someting, it's better to understand how it works.
You can't have everything. Where would you put it?
Programmatically Create PDF Using Free Spire.PDF with Java