import sqlite3 db = r"C:\Users\surov\Documents\AZA\backup 24.2.26\data\stripe_webhook.sqlite" con = sqlite3.connect(db) print("LATEST_LICENSE_ROW =", con.execute("SELECT status, current_period_end, customer_email, updated_at FROM licenses ORDER BY updated_at DESC LIMIT 1").fetchone()) print("DEVICES_TABLE_EXISTS =", con.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='licensed_devices'").fetchone()) con.close()