alerts update, now storing data to mongodb, instead of mockdata