update sqlite db