Combining Multiple Companies Into One Company

We have 5 companies and want to combine them into one company.  We want to do this ourselves rather than pay someone to do it.  Does anyone have a "guide" for doing this?  I need to know what all tables to use to get the various history files, etc.,  for each module integrated with the Visual Integrator.

Thanks!

Sharon