added mongoDB code by following video of class lectures