mcc.py fails due to inconsistency in database