In _test(), was working with flashcards.db in the wrong directory.