Replace TextView and ImageView with CheckedTextView, replace UNIQUE with PRIMARY KEY in the junction table.