def true_false_converter(value):
    """
    Helper function to convert booleans into 0/1 as SQlite doesn't have a boolean data type.

    Converting to strings to follow formatting of other values in the input. Relying on later part of pipeline to change to int.

    """
    if value == "True":
        return '1'
    elif value == "False":
        return '0'
    else:
        return value