Use repository pattern for DB access