added MySQL class and revised SQL class