fixed utils.py event fetching and pymongo syntax