php mailer classes, sql updates