如何使用PHP代码在WHM / Cpanel中以编程方式创建数据库?

I had xmlapi code before 1.5 years ago and working perfectly till 6 months before. Suddenly, it stopped working with no error. Now, I read that xmlapi has been deprecated and uapi is being used. Now, I prepare code as per - cpanel-UAPI-php-class with no error but both xmlapi and uapi could not create database.

Is it possible to make database dynamic as we do in local machine(using query)? Or any other way to work permanently.