How do I automatically generate pages from a database?

Yours is a more general question, so I’ll offer some general comments.

There are WordPress plugins such as TablePress (https://tablepress.org) that do a nice job displaying data on a WordPress page. The individual data points can be made linkable to another page, as needed.

This is, likely, a custom solution, meaning, a developer could help you structure custom data fields and presentation tables.

I haven’t tested, but the quickest way (maybe, not ideal) would be to post a pdf of the table on a WordPress page, perhaps, with some cells linked to other site pages.