My aim is to call a method that fills a datacapture.cfg form with data read from a Data Base.
Are you sure.That would be dynamically creating a data type, not creating a new Form entry/DCR.In my opinion the easiest way would be to create the DCR XML, write it to the TeamSite backing store and set the appropriate extended attributes.