Fix a refactoring bug in mob_db parsing, give better errors