Working on making it so that the last chunk is properly added to the database during compression