db struct has_visit