Automatically create and purge indexes in MongoDB

| Q                    | A
| -------------------- | ---
| Bug fix?             | No
| New feature?         | No
| BC breaks?           | No
| CI currently passes? | Yes
| Tests pass?          | Yes
| Scenarios pass?      | Yes
| Checkstyle issues?   | No
| Changelog updated?   | Yes
| Fixed tickets        | N.A.
| Doc PR               | N.A.
Yep, exactly. But we have a real need for a generic stuff managed on attribute type basis, as each attribute type comes with its own structure. So a bigger task is at hand with that.