Add database tests
Merge pull request #9 from nathanielksmith/db-tests

Add database tests