Returning a connection by scope