cardinality database