replacing cards.sql