actually truncate tables when writing to database