Made runSql function work for DDL commands.