Various changes

- regexp structural changes added to the upgrade script (type)
- Added publish / alert to the background jobs
- fixed a misalignment with the statistics
Merge branch 'feature/test' of https://github.com/MISP/MISP into feature/test