Add index creation for metadata table xsystabparthash; Remove unused codes.