added a few database unit tests