sqlite test code