iterate on sqlite code