[FIX] web: do not check if db in session match filter if no db
[MERGE] forward port of branch saas-3 up to 685fa26