Also accept a db fn in uniqueness-of.