Converts a stored database value to Python.

        :param py_value: <variant>
        :param context: <orb.Context>

        :return: <variant>

def dbRestore(self, db_value, context=None):
        """
        Converts a stored database value to Python.

        :param py_value: <variant>
        :param context: <orb.Context>

        :return: <variant>
        """
        if db_value is not None:
            try:
                return pickle.loads(str(db_value))
            except StandardError:
                log.exception('Failed to restore pickle')
                raise orb.errors.DataStoreError('Failed to restore pickle.')
        else:
            return None