fixed capitalization of SQL