Fixed SQL output from uppercasing database column names.