added isAvailable field to event table