Clean up scripts so text data is stored in warehouse