insert into dotlrn_classes (class_key, node_id) values (:one_class_group_type_key, :node_id)
select node_id from dotlrn_classes where class_key=:class_name
insert into dotlrn_class_instances
(class_instance_id, class_instance_key, class_key, node_id)
values
(:group_id, :class_inst_key, :class_name, :node_id)
select class_instance_id from dotlrn_class_instances where class_instance_key= :class_instance_name