Updated Database to save smartblocks.

SmartBlock.dat's file format has changed, so the code to save the
SmartBlocks to file has changed too.
Refactored out some useless code.