creates a new connection object.