Replace slow map/reduce with faster queries

- Creation of index on 'created' helps
- Need to look at Redis for sliding windows in the future