start of the get 7 days of stats function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>