[qtcontacts-sqlite] Respond to relationship changes

If changes to relationships cause constituent contacts to become disaggregated, or aggregates to become childless, then remove or generate new aggregates as required to maintain order.