[mongo] add `where_exists` to search for fields that exist
fix `badges` to work in ACP / front-end.