[qtcontacts-sqlite] Improve relationships query speed