[qtcontacts-sqlite] Use named parameters in temp table queries

Also, small speed improvement in aggregation query.
Merge pull request #78 from matthewvogt/named-params

[qtcontacts-sqlite] Use named parameters in temp table queries