Database visit function~