Update and rename mysql_pandas to sql_write_csv_all_avg