Life tables in actuarial models: from the deterministic setting to a Bayesian approach