Hi there.
I guess all depends the sql syntax of your database.
The idea is to make a request to your db but using a 'create database' sentence instead of a 'select something from' one ...
In summary: have a look in your db documentation, it will give you the right syntax to use.