summation of expenses moved to sql query, replaces color scheme