public static function getDB( $dbname ) {
		if ( $dbname === 'meta' ) {
			return self::getMetaDB();
		}

		$wikiInfo = self::getDbInfo( $dbname );
		if ( !$wikiInfo['slice'] ) {
			throw new Exception( "Incomplete database information for '$dbname'" );
		}

		return self::getConnection( $wikiInfo['slice'], $dbname );
	}