In what seems to be the constructor for the Connect class, you are doing this: return connection
First of all, a constructor should not be returning a value bacause it implicitly returns a reference "this" to the class.
In your TableDisplay class, this Connect.Connect(); is actually a method call. Bottom line is
you should be returning the collection object from within a method. And all this compiled?