[qtcontacts-sqlite] Ensure queries are completed
Merge pull request #53 from matthewvogt/finish-query

[qtcontacts-sqlite] Ensure queries are completed