(mysql driver) add logging, implement emailsBelongToSameAccount, addKeyToEmailRecord, checkAuth, and pubkeysForEmail