How to safely use metformin to manage type 2 diabetes