Added some functionality to support database compression.
Added experimental and unfinished implementation of database compressor.