Add a class of accessing MySQL data