Added daystaytable and bigstaytable and funcs

Record stay times in daystayable. Daily take an average and record it in
bigstaytable