Converted sql queries to uppercase