changed sql query to uppercase