Fixed a bug with naming of class (Correct database table name was not being returned)