Cleanup search for mongodb node

We were not checking for the right environment, which might matter.