refactored MongoDBBaseEntity to BaseDocument to be generic and follow MongoDB convention