remove DB* from comparison function, need to figure out backwards compatibility.