corrected SQL data script