Added a bunch of new functionality to db_tool to take snapshots of leaves and pending certs.  Figure I'll create an archiving tool to do both debug and possible restore if DB ever has problems.  Also fixed an issue were I wasn't accounting for enough bytes when checking if the DB value could hold more entries.  I was only taking into account the size of the cert to be added, and not the overhead in the list of adding a new entry.