Contact indexing

This adds the indexing needed to grab the contacts and also updates the template to use the real data.
It wasn't mocked up but you're right, seems like we should add it.