added update sql statments