Add index for "portal_type=... and reference=..." queries.

Those queries are very common (user lookup in acl_users, for example).