dbkinds: added index and whitespaces.
added checkResult utility
a lot closer to working first implementation