MongoDB driver/wrapper with recursive operations