The CMS_Class
table holds the main definition of the form (class name, table name, field definitions, etc). The CMS_Form
table holds pretty much everything else on the general and other tabs except the Recorded Data
tab. The data the form actually collects is stored in the table name Recorded on the general tab. So if you were to run a query to get the form and the class definition, it would look something like this:
select *
from cms_class
inner join cms_form on ClassID = FormClassID and ClassIsForm = 1