Issue #22: adding logging to db upgrade