add method save on connection