key_commit: tweak to updaid table function to include different types