added days and sum of querys, also added sum of rowtotal
conflict fix