Repository pattern with SQLite