When using AccountingStorageType=accounting_storage/mysql zero out the
database index for the array elements avoiding duplicate database values.