add sorting to agent filter
intermediate work on lexical alias
refactor database for i18n version