import sqlite3 connection = sqlite3.connect('tutorial.db') connection.row_factory = sqlite3.Row