Hey Goose,
It would have been great if there was a way to dynamically create and modify the dataconnections using code.
But unfortunately I dont think there is one.
Just take a look at the following link where there is a discussion on something similar.
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=350
Regards,
Abhishek