Fixed debugging code to work with cards.db, not the copy