tslink_doupdategroups function now using mysqli

Changed the code to use mysqli in stead of mysql.