Fixed: various errors for SQL_Code