Converting to SQL like search (fields not done)