Revised connection object.
Started big connection, schema, type refactor.
Refactored types.
Updated tests.