fix MongoDb upsertDepartment #37