fixing typo in sql script