The actual and necessary costs of the execution and the postmortem examination shall be paid by the department.