[qtcontacts-sqlite] Add support for missing detail types

QContactFamily and QContactGeoLocation were never previously
supported, for no particular reason.
[qtcontacts-sqlite] Improve expansion of detail existence tests

Producing a 'where exists' clause results in a better query plan than
a contact ID lookup into a subselect.

Also, add functions to lookup DetailInfo and FieldInfo tables to
remove explicit loops where avoidable.
Merge pull request #173 from matthewvogt/missing-details

Add support for missing detail types