The idea I'm playing with is to create a Windows database program like the old but famous DOS program PC-File where a user can define its own table structures (which I store in a table definitions table).So when the program starts only the dbconnection and the table containing the user-table definitions are opened in the OnCreate of the dataModule. After that I need to make a routine that creates the other SQLqueries in the DataModule from the data that is read from the definitions table. A nice puzzle, that will keep me from doing bad things.