Use upsert when updating the network tables.