lex with db