I don't think an MD5 hash of the page itself would work
well as a lookup key.... How are you going to regenerate it
when you want to lookup the information?
That said, I would think an escaped URI might be the best
solution, though I haven't done extensive work with BerkeleyDB... (just a few small int=>data lookup tables)