[IMP] Use ensure_db() for /web and /web/login. Logout controller does not clear the db anymore