Added trigger to trim alert items table to last 50 items only.