Made some iterators auto in tbs_internal_server.cpp