changed card.id to cad._id to match new mongodb structure