chkdbcat prototype

lib/python/chkdbcat.py complete IMHO. bin/chkdbcat hacked together as `proof of concept'.