If you have that many tables you should really look at using web services since your complexity outstrips the basic functions in InfoPath's connectivity model and is difficult to manage as you are finding.
You can use code to template a record or with web services there may be some ways to architect it to give this functionality.
If you would like to see a demonstration of InfoPath and SQL interaction via web services and discuss your requirements, send me an email.