some fixes to update visit stop dat migration sql script