dropped cards from db and created Card class for api