add card class to store card data from db