add log to export file
delete sql