Fixed entity_contract_number for contracts db2
Fixed entity_contract_number for spending db2