changed FileService to use MongoClient for update