Client side mongodb implementation