Added the ability to write the surrounding text from a tag to the DB.
Refactored the DB to hold a position of the surrounding text rather than the actual text. Changed the writing procedure to reflect this.
Made the import function do the correct thing when importing a tag from Rednotebook that was not an actual tag in the text, just an entry tag.