Correct query fetch

- Fix the query criteria for the fetching of event in the given time slot.
- Rename get_events action to index to make it more in line with RESTful ideology

Fixes #8