Partial implementation for bug 1217983

Duplicate database entry exceptions have been re-raised as
SavannaException derived classes.

Change-Id: I84d1760491f2b11bda5648316b7865e87447a40a
Merge "Partial implementation for bug 1217983"