Data views: Rename getTableName() to getQueryName()

getQueryName is more obvious because the function returns
the name of the query the view should use for querying.