
import sqlite3, json
con=sqlite3.connect("/var/lib/friend/friend.db")
con.row_factory=sqlite3.Row
print("tables", [r[0] for r in con.execute("select name from sqlite_master where type='table'")])
