key_commit: add index for collecitons to invoices