Update card_data values to use object structure; add card_data to update functions; fixes to avoid php notices