Use self.class for connection