Some refactoring - added boolean column "closed" to "consumers" table;
and some UI changes