large text on database sqlite

hi.
i’ve a problem with large text in scroll and database.

I have a large text in my sqlite database and i want insert that in a scrollview.
I always used that code:

https://coronalabs.com/blog/2014/06/17/tutorial-working-with-large-blocks-of-text/

but when in mytext variable i insert the text on my db (for example myText = Data.text) it doesn’t work and an error appear. (bad argument). If i insert the same text directely in “myText” it work fine.

What i must do? Where is my error?

First some code would be helpful, I and am many other like to be able to test this directly.

First some code would be helpful, I and am many other like to be able to test this directly.