implement rest of mongo provider for metadataquery