Changed db to sqlite3