updated Running SQL queries