Added ability to specify compression encoding (BZ2, ZLIB) for the on-disk DB.