Added features: query all cards, factory create flashcards