refactoring TwitterDbAdapter