Update mysql snippet