Implement the class of accessing MySQL