Transition to using sqlite3