refactored sqlite adapter to have the test functions, and adopt domain name policy2