Updated schema
Added events to tasks and socket.io