What tables need to be edited to keep older units around after buying the upgrades in the tech tree?

Thanks.