Yael and Kevin: Search Function added to Query.Java