fix sql search for multiple text queries