Savepoints for IntegrityError.

Maybe related to #114