Added mongodb implementation