found to visited
add type for timestamp so query doesn't fail on zero entries