def METHOD_NAME(sql):
    connection = mssql_dbapi_connection_from_url(os.environ["DATABASE_URL"])
    cursor = connection.cursor()
    cursor.execute(sql)
    keys = [x[0] for x in cursor.description]
    # Convert all values to str as that's what will end in the CSV
    return [dict(zip(keys, map(str, row))) for row in cursor]