sql corrected