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