Key to Pakistan’s stability lies in democracy:President