Move SQL script generation on Model Classes (who now extend TreeNode)