update sqlite code