Optimised Phrase Querying and Browsing in Text Databases