Fix ignore case and a few queries.