# TODO Database verbindung herstellen import mysql.connector def db_connection(user, password, host): connection = '' try: connection = mysql.connector.connect(user=user, password=password, host=host) except mysql.connector.Error as err: print('Something went wrong', err) return connection.cursor()