MongoDB matryoshka wrapper