slightly smarter deactivate model code.
...Which appears to expose a sqlite bug, needs to be tested with PostgreSQL
...or revert to single column set version.