Upserts to MongoDB in caching, now properly.