Best way to create multiple databases with Plesk

I'm using Plesk and one faults of the Plesk control panel is that I'm limited to creating only one database per user. From Plesk, "this is by design".

I found a tutorial that seems to have a work around while using SSH that will create multiple databases and tie them to a single user. Here's the tutorial:

The problem is it appears that I would have to do this 16, 256, etc times depending on how many databases I want.

Is there someway I can script this given all the variables that are needed in the work around?

Any help would be greatly appreciated!