Truncate SQL query text in index page

Large queries make the table hard to navigate.
Add DirectoryLister interface