Sound strange to me that JobDone is not triggered, but, if true, maybe you can first check how many records with that name exists ?
Sql = "SELECT COUNT(*) FROM Friend WHERE Name = 'Chan Tai Main'"
The query is ExecQuerySingleResult type and should always return something