Added quoteName to SQL just to be sure