Added mongo code