Create a TTL index so that expired data is deleted

At the moment expired data isn't deleted and builds up in the database. This creates a [TTL index][] on the `stored` field so that Mongo automatically deletes any expired data.

[TTL index]: http://docs.mongodb.org/manual/tutorial/expire-data/