Update check for entered day, to reflect updated database structure
Add function to view data