def delete_data(self): connection = mysql.connector.connect(host="127.0.0.1",user="root",password="",database="stm&q