Migrate existing queries to lower case