added AgreementType index and create