added where sting to miopdb query