bug fix for listing all flashcards in a db