added version field in table server_info

fixed two bugs found in sonar as well