Fix to adding data from MongoDb