M2MongoDB utility functions