Added SQLite testcode.
Added more queries and refactored impl classes.