Get connection from context