Implement mdb search query