Classes to support MySQL logging