This should not work. Your script is clearing the sheet every time you call it.
[Edit] To send large data to Google sheet or Google script see this demo