database encode change, add base64encode