db mails connection

getting mails from db using teacher id