Eventspot server side code