speeding up stats page on postgresql