[qtcontacts-sqlite] Match to existing aggregate in SQL

Reading all aggregates into memory for match testing is not workable
for any reasonable number of contacts.

The match algorithm is now less sophisticated, but if necessary it
can be extended to correspond to the old version.