add database operation
delete temp file