database driven web app for flashcards written in python