Revert "Drop old comparison code."

This reverts commit 427e99624301ec3eeeecdc8ff61d3cb00d66fba1.
Build for 1.1.6 until 1.2.2 is ready (adds in-DB authentication).