Package appears to be removed from npm.
jay@ubuntu:/var/www/jayplayswithbdb$ sudo npm install bdb
[sudo] password for jay:
npm http GET https://registry.npmjs.org/bdb
npm http 404 https://registry.npmjs.org/bdb
npm ERR! 404 'bdb' is not in the npm registry.
Package appears to be removed from npm.