Remove search from lib, add mongodb to dependencies