changed example to use sqlite3