Fixed remove_old_logs task to avoid deleting the current check status (which is the one without date_end)
Modified last_status relation from Check to CheckStatus so it can be null. Thus CheckStatus deletion does not trigger delete cascade behavior