2010 Berkeley db's
You mean Berkeley DB 4.8.
Why does a wallet have so many bloody privkeys?
It's by design. On 2010 Bitcoin Qt add Key Pool feature which generate 100 features in advance so user could backup their wallet less frequently.
Source:
https://bitcointalk.org/index.php?topic=1414.0