Changed estimateSquareResponseTime to use mongodb but performance worsened