replaces searches with matching one, zero...added functions to mongo class