Added retrieve table schema functionality

Changed close connection method from .close() to .dispose().