Improved DatabaseLogger for exceptions and added SessionEntity