Create a connection object.