import sqlite3 def get_db_connection(): conn = sqlite3.connect('database.db') conn.row_factory = sqlite3.Row return conn frame1 = "W1CDN-1>APDW16,K0UND-2*:;147.390GF*111111z4755.45N/09700.58Wr147.390MHz +060 https://www.wa0jxt.org/" conn = get_db_connection() conn.execute('INSERT INTO frames (frame) VALUES (?)', (frame1,)) conn.commit() conn.close()