Fixed bug causing all index names to be “datetime”

Previously the string “datetime” was hard coded into AbstractIndex::getTableName.

Now the class of  is transformed into a path, the last segment (filename) is stripped of /Index$/ if it exists, and the resulting string is used