Contributions to Risk Management and Mean-Field Type Problems