Apply update sql to next version