def _decode(xdata):
        """Unpickle data from DB and return a PickleDict object"""
        data = pickle.loads(base64.decodestring(xdata))
        if not isinstance(data, PickleDict):
            data = PickleDict(data)
        return data