Modified the function "pandora_checkdb_consistency" to force the server to update the values of the modules status of an agent after a module deletion