Add First Draft of Database Tests

This is pretty ugle.

Should be much cleaned up in the future.