A couple of syntax errors in SQL script (Corresponds to Issue #1)