Adding TTL to mongodb data to prevent stale cache

Cleaning other files up