A Relational Database Model for Text Encoding