dbmanager: include materialized views (implements #9127)