Renamed AuditLog.classname to type and refactored AuditLogDetails too