updated sqlite code