Consolidation of the update reports queries into a function

Signed-off-by: emanuele <emanuele45@gmail.com>
Close the reports only after the message has been deleted - thanks @Arantor for the reminder

Signed-off-by: emanuele <emanuele45@gmail.com>
Ooops... :P

Signed-off-by: emanuele <emanuele45@gmail.com>
Some other queries out of ModerationCenter.controller that is now query-free

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #874 from emanuele45/moderation_refact

Moderation refact