code: def FromDBInstance(db_token):
          
          hash_ar = bytearray(binascii.unhexlify(db_token.ContractHash))
          hash_ar.reverse()
          hash = UInt160(data=hash_ar)
          token = NEP5Token(script=None)
          token.SetScriptHash(hash)
          token.name = db_token.Name
          token.symbol = db_token.Symbol
          token.decimals = db_token.Decimals
          return token
docs: Get a NEP5Token instance from a database token.
  
          Args:
              db_token (neo.Implementations.Wallets.peewee.Models.NEP5Token):
  
          Returns:
              NEP5Token: self.