Performs querries of the data for a week or a day. And graphs them.