moved search method to mdb module