Chg: Predb web, use MySQL to md5/sha1 to avoid encoding issues.