Adding mongodb implementation