If the money in the treasury is demanded within six years by the legal representatives of the deceased, the treasurer shall pay it to them after deducting the fees and expenses of the coroner and of the county in relation to the matter, or the same may be so paid at any time thereafter, upon the order of the board of county commissioners of the county.