modify function sync
create CheckIfStayOverTime2 function for access_sql function access