added classes to handle data consolidation
extended data consolidation to mysql databases