George, I don't think resurrecting a 6 year old thread is a good place to start. Take a look at http://docs.moodle.org/dev and then, if that does help you, come back to the forums and start a new thread outlining where exactly you are stuck.
General developer forum
Important! insert_record() changes
This discussion has been locked so you can no longer reply to it.