I wrote a method to break up a text document into parts ready for a SQLite database.