fix update with sqlite