merge FEED's sqlite code with libefgy