improved direct mongo query