Basic mongodb functionality added.