logging: fix issue with db.func.now

* Updates HstException with a fix to avoid an exception
  that was raised when exceptions are being stored into
  the HstException model.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>