update sql snipet