Updated connection to sqlite3 database