Add index update on inserting into indexed table

Change-Id: Ic1899413294d553bb8e30414d36c0703f36f24c8