the odid != 0 check in cards_for_deck.sql is necessary for sqlite to be able to take advantage of the index