base64 encode and decode for mysql (mysql 5.1)