comparison, db: use comparison information stored in the database