Reduce the reachability timestamp update to a single upsert query