Save cards to database