fix slow data fetch, add line number to logging, update count methods, add datepicker in statitstics.