added support to alert deletion
changed id (python reserved word) in alert code for _id)