Democracy gradually taking roots in country: President