WIP, reworking to make more intelligent use of classes
Working after doing major code reorganization.  Now need to add code to Host class to handle writing to database.