Don't rely on class name for inserting a click handler

Test Plan:
- Load a database with a table in it and click on the table name.

Auditors: pamela