[db] pre-resolve style synonyms when matching
[db] use consistent identifiers
[db] employ the info from fontstyle_name when matching styles