Do expiration in DB rather than in python.
Bump version number