Fixed Past Seven Entries

Changed the mechanism used to collect the past seven entries in the
sleep_data table. Much more streamlined as we are only collecting the
past seven entries in the table and not the entries in the past seven
days.