[SR-Dev] git:janakj/bdb: further cleanups in core database API