Functions to check the redis data structure
Give a popup if the database is corrupted
Fixed invalid value in date picker field when no date is available
Removed redundant database check

The case where no fields are selected is handled with a
dedicated error message.
FIX for PEP issues
Added TODO list