add md5(sql) as unique id