Updated Tests

Started implementing some tests that test insertions and queries to the database.
Nothing really important is being tested as of yet.  It will be more useful when
we've got some more complicated relationships to ensure are correct.