Improve read performance (with updated schema)

A variety of small changes to improve read performance, using the updated schema introduced by: https://github.com/nemomobile/qtcontacts-sqlite/pull/166

The first two commits are PR 166.