hist table upsert basic case working