fixed new sql to enter one of the views