def convert_boolean(value: bool) -> str:
    """Convert from python bool to postgresql BOOLEAN"""
    if value is True:
        return 'TRUE'
    elif value is False:
        return 'FALSE'
    else:
        return 'NULL'