Add test cases for dbaccess package.

Fix erroneous null-result check in MarketGroupForItem, which said test cases
found.
Add test case for nonexistent item name.