modified Visit and temp DatabaseHandler