Card database and comparator