adding debug logs to getfrommongo