Truncate SQL query text in index page

Large queries make the table hard to navigate.