Added cost_total field to sql script.