Adding event interface (useful for NOTIFY), also changing jsonbody