adapt lm-export-dict to new DB scheme