The trend values can be defined on the "Data" tab or in the ExtTrend of the PmaData object.
If the database files do not exist, then these will be created on first applicagion launch, when calling the Run method (or the RunTime method) of the PmaTrendGroup object. Or automatically by checking the "Automatic saving after launch is enabled" configurator on the "Trend" tab.
pMe.DbExecute("", "CREATE TABLE data (nTime DATETIME PRIMARY KEY NOT NULL, flags SMALLINT NOT NULL, value1 FLOAT NOT NULL)", "");