Fix verify database base64 encode for supporting python3.2