import sqlite3 con = sqlite3.connect("data.db") cur = con.cursor() cur.execute('CREATE TABLE IF NOT EXISTS data_table (key, value)')