record criteria in mongodb for each entry