The Palm DB Tools distribution contains model documents.
Model Documents
For MS-Excel.
For StarOffice 5.2 and Open Office 1?.
These are Basic scripts that use the command-line applications to build a database from a worksheet.