Implemented EZP-20816: Added new index on ezcontentobject_attribute

Credit goes to @joaoinacio (https://github.com/ezsystems/ezpublish-legacy/pull/626)
Implemented index in mysql and postgre databases