Web services based API for event database