Update usage of the Connection class