changing the wrongly used stored proc in Event.py