getDefaultDatabaseOrFirst

Returns the database that has been set as the default for all transactions, or, if none was set, the last instance created.