Fixed equality issue. From now on all the items in te catalog table are
6-tuples, and will include the id. This is valid also for the file representation, even if the id is not included, to avoid further bugs.