[Server][DBClientTest] Change a way of counting.
[Server][DBClientTest] Remove an unnecessary function:
addHostInfoToList()