#4 - Changing to mongodb event handler