fetch authentication info from database
rename self.pty to self.proc