Updated sql file and updated createEvent to work with share column