Beginner question - best approach for a table / database?

what type of chip are you using? ESP32?

you could have a look at the Extended Database Library and the SPIFFS example