db: introduce get_mtag_name_expr()