modify open_spider to truncate table