with psycopg2.connect(DB) as conn:
    with conn.cursor() as curs:
        curs.execute("INSERT INTO zamestnani (nazev) VALUES ('blabla');")
        curs.execute("INSERT INTO konicek (nazev) VALUES ('horolezeni');")
