got the new sql to work