Merging programs

I am still working on merging my smaller programs into one, and plan on using flags to call each sub-program. At the moment, the csv generator and database writer have been merged, but still has bugs where the csv generator as a standalone program isn’t  breaking down into modules nicely. The difficult part is getting each part of the program interfaced without breaking it. Afterwards, I will be writing the KML generator and interfacing it, hopefully a little easier than this the csv is going. It’s strangely like the rubiks cube sitting on the desk, where fixing one part breaks another. However, taking a couple minutes to work with the cube actually makes the structure of the program easier to follow when I go back to it. Probably a good idea for any programmer to have one on the desk.