Rebuild file from DB