fixed reset sqls