Merge pull request #520 from jamiehannaford/fix-db-results

Use better type assertions for Trove/CDB results