from sqlite3 import *
from prettytable import printTable

with connect("schule.db") as con:
    cursor = con.cursor()
    sql = """SELECT familienname, vorname, wohnort 
           FROM person
           WHERE wohnort = 'Bern'"""
    cursor.execute(sql)
    printTable(cursor)
