adding data to an existing content type programmatically I am sure this question has come up before, but right now my google skills are failing me.  I am trying to create a migration module since I haven't had any luck with either the migrate module or migrate_d2d.  Right now I am trying to populate a content type with the data from my field remap, but I can't find out how to do it.

would a simple db_insert work or is there something special I need to do to generate the field data?
Matt,

To create a node programmatically, 


You firstly need to create a content type for same. This will make sure that Drupal architecture is followed to create a node.
Now you need to create a node from UI, and in hook_node_presave, make sure you print the node object - dprint_r($node); die; and see what is the Object architecture like.
Now you need too create the same object before saving it.
To, create the object, create $node = new stdClass();, define the node type $node-&gt;type = 'YOUR CONTENT TYPE NAME' and do a node_object_prepare($node), this will make sure that all the basic settings are added to the node object.
Post this, make sure you create the object, same as it was in node presave stage.
Just before calling node_save, call node_submit, which will prepare the node for submission.


Hope this helps !!!