Add indexing for sqlite database.
Expire older changesets from the database.