Adaptive Treatment Strategies with Survival Outcomes: An Application to the Treatment of Type 2 Diabetes using a Large Observational Database