[qtcontacts-sqlite] Use transient ID tables to avoid bound variables limit

If a query includes a large group of contact IDs, create a transient table to reference those IDs from, in order to avoid the SQLite limit on the total number of bound variables per query.

(Experimental, do not merge)