Add thread connection manager in visual index handler to make it thread
safe