Add multistate_groups option to DBManager and multistate filter.