Beta 6: sql update (0.3.9 to 0.4.0)