fix db escape in lexicon module