DB: logging exceptions should use save_and_reraise

Commit 384cce84fde784f9e2f39db49502c66e20ff0b4c added logging of an
exception. This should be done under save_and_reraise.

Change-Id: Ib0d29ac8c51c6df9ad27d75a06b2c8ce66182e0c
Merge "DB: logging exceptions should use save_and_reraise"