splice a list of events into the index template; how do I select them from the db?