added implementation for mongoRead