Updated mongo function to perform a callback with retrned data directly in response handler