Here's a patch to restrict the user to creating db names that begin with the userid followed by underscore. This probably has problems for wider distribution (e.g. it restricts the super-admin, too), but it's th basic idea.
Restrict new db creation to userid underscore
Restrict new db creation to userid underscore