making queries to lowercase