Refine header handling in TempFuDb