server.js cleanup: search_wrap if we have a search key in the mongo config object

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>