If the 'database' will not be that big, have a look at the TMap command. A sticky thread can also be found in the BlitzMax Programming, which explains it a bit more.
For a real database you should may check out Brucey's Modules, he has a MySQL driver available.
For a real database you should may check out Brucey's Modules, he has a MySQL driver available.