import psycopg2
import json

conn = psycopg2.connect("dbname=jumpadb user=jumpa_admin password=JumpaS3cur3!@# host=127.0.0.1 port=5432")
cur = conn.cursor()
cur.execute("SELECT email, licenses FROM users WHERE email = 'keanu@pc24.id'")
row = cur.fetchone()
print(f"User: {row[0]}")
print(f"Licenses: {row[1]}")

cur.execute("SELECT key, name FROM system_features WHERE key LIKE '%microphone%'")
features = cur.fetchall()
print("Microphone features:", features)

conn.close()
