switch to unique_ptr the connection will NEVER be shared and there is no need for the overhead