[qtcontacts-sqlite] Allow multiple aggregates to aggregate unique details

A detail URI should be able to be aggregated into multiple aggregates
without causing uniqueness errors.
Fix date time comparison in aggregation test