change tcp server so that able to save multiple rows