using custom chainstate db to do lookups