added toUuid array lookup to events api and converted _id to id