Added MongoDB query support