Implmented File entity persisting to MongoDB