Wrong reporting after execution of migration script to change the way reports are used from the database
in #6005, we changed the way we handle the reporting, by taking the most recent one (insertion wise) from the database.
however, we left a lot of entry to null; which is not good because when we sort, NULL is always before the others (DESC or ASC wise)
We need to have a default value to 0 to correct this
Note: the problems corrects itself after a while, when old reports are deleted from the database