Fixed connection timeout for mongo version
Added support for CPagination