Selecting a table now opens a query tab showing the table's contents.

Fixes #11