missed a few lines to cleanup and move ALTER statements to sql_noresult