Backend change to mongodb