 
 	private class func fetchLogoDetails(_ url: String) -> LogoInfo {
 		var logoDetails = LogoInfo()
-		logoDetails.color = "000000"
+		logoDetails.color = nil
 		logoDetails.fontSize = 16
 		if let urlDetails = URLParser.getURLDetails(url),
 		   let hostName = urlDetails.name,
-		   let details = self.logoDB?[hostName] {
+		   let details = self.logoDB?["domains"][hostName] {
 			logoDetails.hostName = hostName
 			logoDetails.prefix = hostName.substring(to: hostName.index(hostName.startIndex, offsetBy: 2)).capitalized
 			if let list = details.array,
 				list.count > 0 {
 				for info in list {
-
 					if info != JSON.null,
 					   let r = info["r"].string,
 					   isMatchingLogoRule(urlDetails, r) || info == list.last {

			if self._logoDB == nil {
				if let path = Bundle.main.path(forResource: "logo-database", ofType: "json", inDirectory: "Extension/build/mobile/search/core"),
				   let jsonData = try? Data(contentsOf: URL(fileURLWithPath: path), options: .mappedIfSafe) as Data {
					self._logoDB = JSON(jsonData)["domains"]
				}
			}
			return self._logoDB

	var hostName: String?
}

extension String {

	func asciiValue() -> Int {
		var s = UInt32(0)
		for ch in self.unicodeScalars {
			if ch.isASCII {
				s += ch.value
			}
		}
		return Int(s)
	}
}

class LogoLoader {

	private static let dbVersion = "1483980213630"
