Updated pact_repository to work with separated domain/db models for updating a pact.
Ensured pact_repository returns pact when attributes have not changed.