I faced with the same problem, edit the id declaration, eg. id INTEGER PRIMARY KEY AUTOINCREMENT,
id
id INTEGER PRIMARY KEY AUTOINCREMENT,