Adds database tests

Adds equality to FlashCard,
and unit test for it.
Adds a db test for adding cards