How to export AuditLog to the database.