Update insertVisits script