change update_sync_log_with_checks to make case_db more clearly not optional