fixed import script so it creates the visit data properly