DRYing up the establish connection logic.  Adding good excludes to rubocop