Mode lookup needs to be on code, non-localized.
Use Mode#ocde, not #name, when doing lookups, comparisons, etc. [Fixes #66719280]
Merge from 0.17
Change db reset commands on travis. [#66779344]
Don't create records in class initialization, db may not be set up. [#66779344]