def add_task(title, priority): conn = psycopg2.connect(**DB_PARAMS) cur = conn.cursor() cur.execute("INSERT INTO tasks(title, priority) VALUES (%s, %s);", (title ...