adding oneByQuery and allByWuery methods to mongo state provider