We should #ifdef all this stuff, so that we only do the partial aggregation + synctarget + whatever stuff, if we're building with qtcontacts-sqlite support.  But, I don't know how much effort that would be, so it may not be worthwhile.