Completed saving of visits in mysql