Fix streaming uncompression. Improvements to dbmanage