logging for troubleshooting mongo queries