def __init__(self, host, name, user, password):
    self.host = host
    self.name = name
    self.user = user
    self.password = password
    self.connection = pymysql.connect(host=host, database=name, user=user, password=password, autocommit=True)
def __init__(self, host, name, user, password):
    self.host = host
    self.name = name
    self.user = user
    self.password = password
    self.connection = pymysql.connect(host=host, database=name, user=user, password=password, autocommit=True)