Added basic mongodb functionality