Fixed bug relating to uniqueness constraint.
Various admin improvements.