Gets a database
$name
name
The database name.
Returns a new database object.
Throws Exception if the database name is invalid.