def __init__(self, host: str, user: str, password: str, database: str, port=3306):
    self.db = pymysql.connect(host=host, user=user, port=port, database=database, password=password)
    self.cursor = self.db.cursor()
def __init__(self, host: str, user: str, password: str, database: str, port=3306):
    self.db = pymysql.connect(host=host, user=user, port=port, database=database, password=password)
    self.cursor = self.db.cursor()