re-raise the original exception when cleaning the database

This ensures we get a full traceback from the point where that exception
was raised.