This method of the Connection class assigns the name of the default database for a Connection object.
public void setDefaultDatabase(String db);