Hi,
Seems that the first thing you need to fix is your routing and access ACLs to Google ;)
how to read Berkeley DB files
Is pretty much a Google-whack. Might want to check out the db-utils package eg
http://amath.colorado.edu/computing/spamtrack/bdb/
alan