TMS Scripter

Not sure what do you mean by a "class written in a database"? 

Nevertheless, any class in scripter are "pseudo-classes". You register a class in scripter, its properties and methods, but they are all "fake" properties and methods. You must implement a Delphi code that executes the method code, or that gets or sets the value of properties. There is a whole chapter in the manual explaining how to register classes in scripter system, have you tried those examples, and if yes, what exactly did you try and why it didn't work?