Table is cleared completely to prevent Sqlite "PRIMARY KEY must be unique" error