add a new sql and some utils