Still more testing and fixes related to PDO. Also updated the mailer in LTI registration