Integrating the groundwork for mongo pagination