#229051 by jaydub, ainigma32, Josh Waihi, Dave Reid, druido, bellHead: solve top visitors pagination issues in statistics module with postgresql