New alerts now validate that their name is unique. Fixed a db leak where
db needed to be closed.