added query method which supports mongo comparitors