completed SQLiteRepository refactor